<div class="sidenav">
    <div class="navhead">
        <span>Danh mục sản phẩm</span>
    </div>
</div>
<div class="right-nav">
    <ul>
        <?php
        foreach ($aryTreCategory as $category) {
            extract($category);

            if ($category_level == 0) {
                $category_name = '&nbsp;&nbsp;' . $category_name;
            }
            if ($category_level == 1) {
                $category_name = '&nbsp; &nbsp; &nbsp;&nbsp;' . $category_name;
            }
            if ($category_level == 2) {
                $category_name = '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;' . $category_name;
            }
            if ($category_level == 3) {
                $category_name = '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;' . $category_name;
            }
            if ($category_total_child > 0) {
                $category_name .= '<span><img src="/public/images/form/arrow_state_blue_right.png"></span>';
            }

            $listId = '';
            if ($category_id == $categoryId) {
                $listId = 'selected';
            }
        ?>

        <li class="cpointer <?php echo $listId; ?>"><a onclick="AdminController.getListProduct('<?php echo $orderType; ?>', '<?php echo $category_id; ?>', '0', '1')"><?php echo $category_name; ?></a></li>


        <?php } ?>

    </ul>
</div>
<div class="sidenav">
    <div class="navhead">
        <span>Hãng sản xuất</span>
    </div>
</div>
<div class="right-nav">
    <ul>
        <?php foreach ($aryMaker as $key => $value) {?>
        <li class="cpointer <?php echo ($value['product_maker_id'] == $productMakerId) ? 'selected' : '';?>">
            <a onclick="AdminController.getListProduct('<?php echo $orderType; ?>', '<?php echo $categoryId; ?>', '<?php echo $value['product_maker_id'];?>', '1')">&nbsp; &nbsp; &nbsp;&nbsp;<?php echo $value['product_maker_name'];?></a>
        </li>
        <?php } ?>
    </ul>
    
</div>
